//
//  ECCourseCommentModel.m
//  Edu_iOS2018
//
//  Created by yanyan on 2018/1/17.
//  Copyright © 2018年 yanyan. All rights reserved.
//

#import "ECCourseCommentModel.h"
@implementation ECCourseCommentModel
- (instancetype)initWithCommentObject:(id)obj
{
    if (self = [super init]) {
//        self.modelId = [obj valueForKey:@""]
        self.content = [obj valueForKey:@"content"];
        self.createdTime = [obj valueForKey:@"createdTime"];
        self.rating = [[obj valueForKey:@"rating"] integerValue];
        self.user = [[ECUserModel alloc]initWithObjectInComment:[obj valueForKey:@"user"]];
    }
    return self;
}
@end
